#ifndef __MATRIXTRANSFORM__H
#define __MATRIXTRANSFORM__H

#include "Matrix4.h"
#include "FrustumMath.h"

class matrixtransform : public group {
 public:
	Matrix4 matrix;
	
 matrixtransform() : matrix(0) { matrix.identity(); }
	
	void draw(Matrix4 *transform, FrustumMath fmath) {
		Matrix4 C_new = (matrix)*(*transform);
		
		// Recursively draw children
		for (size_t i=0; i<children.size(); i++) {
			children[i]->draw(&C_new, fmath);
		}
	}
};

#endif
